package com.ruoyi.wechat.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 讲师列表对象 teacher
 *
 * @author 林道敬
 * @date 2025-01-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("teacher")
public class Teacher extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(type = IdType.AUTO)
    private long id;

    /** 讲师姓名 */
    @Excel(name = "讲师姓名")
    private String name;

    /** 讲师简介 */
    @Excel(name = "讲师简介")
    private String intro;

    /** 讲师资历,一句话说明讲师 */
    @Excel(name = "讲师资历,一句话说明讲师")
    private String career;

    /** 头衔 1高级讲师 2首席讲师 */
    @Excel(name = "头衔 1高级讲师 2首席讲师")
    private String level;

    /** 讲师头像 */
    @Excel(name = "讲师头像")
    private String avatar;

    /** 排序 */
    @Excel(name = "排序")
    private String sort;

    /** 入驻时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入驻时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date joinDate;

    /** $column.columnComment */
    private Long isDeleted;


    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setIntro(String intro)
    {
        this.intro = intro;
    }

    public String getIntro()
    {
        return intro;
    }
    public void setCareer(String career)
    {
        this.career = career;
    }

    public String getCareer()
    {
        return career;
    }
    public void setLevel(String level)
    {
        this.level = level;
    }

    public String getLevel()
    {
        return level;
    }
    public void setAvatar(String avatar)
    {
        this.avatar = avatar;
    }

    public String getAvatar()
    {
        return avatar;
    }
    public void setSort(String sort)
    {
        this.sort = sort;
    }

    public String getSort()
    {
        return sort;
    }
    public void setJoinDate(Date joinDate)
    {
        this.joinDate = joinDate;
    }

    public Date getJoinDate()
    {
        return joinDate;
    }
    public void setIsDeleted(Long isDeleted)
    {
        this.isDeleted = isDeleted;
    }

    public Long getIsDeleted()
    {
        return isDeleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("intro", getIntro())
            .append("career", getCareer())
            .append("level", getLevel())
            .append("avatar", getAvatar())
            .append("sort", getSort())
            .append("joinDate", getJoinDate())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("isDeleted", getIsDeleted())
            .toString();
    }
}
